home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Over 1,000 Windows 95 Programs
/
Over 1000 Windows 95 Programs (Microforum) (Disc 1).iso
/
0159
/
vb.zip
/
SELECTIO.FRM
< prev
next >
Wrap
Text File
|
1995-12-17
|
38KB
|
1,116 lines
VERSION 2.00
Begin Form SelectionDemo
BackColor = &H00C0C0C0&
BorderStyle = 1 'Fixed Single
Caption = "Selection Properties"
ClientHeight = 6525
ClientLeft = 705
ClientTop = 1605
ClientWidth = 9075
Height = 6885
Left = 645
LinkTopic = "Form1"
MDIChild = -1 'True
MinButton = 0 'False
ScaleHeight = 435
ScaleMode = 3 'Pixel
ScaleWidth = 605
Top = 1305
Width = 9195
Begin Frame Frame4
BackColor = &H00C0C0C0&
Caption = "Selection Properties"
Height = 2265
Left = 180
TabIndex = 29
Top = 4170
Width = 8775
Begin CommonDialog CMDialog1
Left = 2850
Top = 930
End
Begin CheckBox Check1
BackColor = &H00C0C0C0&
Caption = "Highlight"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
ForeColor = &H000000FF&
Height = 285
Index = 4
Left = 90
TabIndex = 58
Top = 1410
Width = 1350
End
Begin OptionButton Option2
BackColor = &H00C0C0C0&
Caption = "Center"
Enabled = 0 'False
ForeColor = &H00FF0000&
Height = 230
Index = 2
Left = 7650
TabIndex = 55
Top = 150
Width = 915
End
Begin OptionButton Option2
BackColor = &H00C0C0C0&
Caption = "Right"
Enabled = 0 'False
ForeColor = &H00FF0000&
Height = 230
Index = 1
Left = 6810
TabIndex = 54
Top = 150
Width = 915
End
Begin OptionButton Option2
BackColor = &H00C0C0C0&
Caption = "Left"
Enabled = 0 'False
ForeColor = &H00FF0000&
Height = 230
Index = 0
Left = 6030
TabIndex = 53
Top = 150
Width = 705
End
Begin HScrollBar HScroll1
Enabled = 0 'False
Height = 240
Index = 10
Left = 6000
Max = 100
Min = -100
TabIndex = 48
Top = 1590
Value = 1
Width = 2055
End
Begin HScrollBar HScroll1
Enabled = 0 'False
Height = 240
Index = 9
Left = 6000
Max = 100
Min = -100
TabIndex = 45
Top = 1320
Value = 1
Width = 2055
End
Begin HScrollBar HScroll1
Enabled = 0 'False
Height = 240
Index = 11
Left = 6000
Max = 150
TabIndex = 42
Top = 1860
Value = 1
Width = 2055
End
Begin HScrollBar HScroll1
Enabled = 0 'False
Height = 240
Index = 8
Left = 6000
Max = 360
TabIndex = 39
Top = 420
Value = 1
Width = 2055
End
Begin HScrollBar HScroll1
Height = 240
Index = 7
Left = 1350
Max = 25
TabIndex = 36
Top = 330
Width = 2550
End
Begin HScrollBar HScroll1
Height = 240
Index = 6
Left = 1350
Max = 26
Min = 2
TabIndex = 33
Top = 600
Value = 2
Width = 2550
End
Begin TextBox Text1
Height = 315
Left = 6000
TabIndex = 30
Top = 690
Width = 2055
End
Begin Label Label1
Alignment = 1 'Right Justify
BackStyle = 0 'Transparent
Caption = "HighlightColor"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 225
Index = 15
Left = 0
TabIndex = 57
Top = 1740
Width = 1305
End
Begin Label Label4
BorderStyle = 1 'Fixed Single
Height = 285
Left = 1350
TabIndex = 56
Top = 1740
Width = 2055
End
Begin Label Label3
BorderStyle = 1 'Fixed Single
Height = 285
Left = 6000
TabIndex = 31
Top = 1020
Width = 2055
End
Begin Label Label1
Alignment = 1 'Right Justify
BackStyle = 0 'Transparent
Caption = "SelectionColor"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 225
Index = 14
Left = 4470
TabIndex = 51
Top = 1050
Width = 1485
End
Begin Label Label1
Alignment = 1 'Right Justify
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "SelectionAlign"
Enabled = 0 'False
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 195
Index = 13
Left = 4920
TabIndex = 52
Top = 180
Width = 1005
End
Begin Label Label1
Alignment = 1 'Right Justify
BackStyle = 0 'Transparent
Caption = "SelectionAngle"
Enabled = 0 'False
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 225
Index = 12
Left = 4470
TabIndex = 50
Top = 450
Width = 1485
End
Begin Label Label2
BackStyle = 0 'Transparent
Height = 255
Index = 10
Left = 8100
TabIndex = 49
Top = 1590
Width = 525
End
Begin Label Label1
Alignment = 1 'Right Justify
BackStyle = 0 'Transparent
Caption = "SelectionOffsetY"
Enabled = 0 'False
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 225
Index = 11
Left = 4470
TabIndex = 47
Top = 1620
Width = 1485
End
Begin Label Label2
BackStyle = 0 'Transparent
Height = 255
Index = 9
Left = 8100
TabIndex = 46
Top = 1320
Width = 525
End
Begin Label Label1
Alignment = 1 'Right Justify
BackStyle = 0 'Transparent
Caption = "SelectionOffsetX"
Enabled = 0 'False
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 225
Index = 10
Left = 4470
TabIndex = 44
Top = 1350
Width = 1485
End
Begin Label Label2
BackStyle = 0 'Transparent
Height = 255
Index = 11
Left = 8100
TabIndex = 43
Top = 1860
Width = 525
End
Begin Label Label1
Alignment = 1 'Right Justify
BackStyle = 0 'Transparent
Caption = "SelectionRadius"
Enabled = 0 'False
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 225
Index = 9
Left = 4470
TabIndex = 41
Top = 1890
Width = 1485
End
Begin Label Label2
BackStyle = 0 'Transparent
Height = 255
Index = 8
Left = 8100
TabIndex = 40
Top = 420
Width = 525
End
Begin Label Label1
Alignment = 1 'Right Justify
BackStyle = 0 'Transparent
Caption = "SelectionID"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 225
Index = 8
Left = 120
TabIndex = 38
Top = 330
Width = 1185
End
Begin Label Label2
BackStyle = 0 'Transparent
Height = 255
Index = 7
Left = 3930
TabIndex = 37
Top = 330
Width = 525
End
Begin Label Label1
Alignment = 1 'Right Justify
BackStyle = 0 'Transparent
Caption = "Selections"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 225
Index = 7
Left = 180
TabIndex = 35
Top = 600
Width = 1125
End
Begin Label Label2
BackStyle = 0 'Transparent
Height = 255
Index = 6
Left = 3930
TabIndex = 34
Top = 570
Width = 525
End
Begin Label Label1
Alignment = 1 'Right Justify
BackStyle = 0 'Transparent
Caption = "SelectionCaption"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 225
Index = 6
Left = 4440
TabIndex = 32
Top = 750
Width = 1515
End
End
Begin Frame Frame3
BackColor = &H00C0C0C0&
Caption = "Line Properties"
Height = 1395
Left = 3720
TabIndex = 1
Top = 2730
Width = 5235
Begin HScrollBar HScroll1
Height = 240
Index = 5
Left = 2010
Max = 10
Min = 1
TabIndex = 2
Top = 990
Value = 1
Width = 2550
End
Begin HScrollBar HScroll1
Height = 240
Index = 4
Left = 2010
Max = 100
TabIndex = 3
Top = 720
Width = 2550
End
Begin CheckBox Check1
BackColor = &H00C0C0C0&
Caption = "LineDisplay"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
ForeColor = &H000000FF&
Height = 285
Index = 3
Left = 180
TabIndex = 4
Top = 300
Value = 1 'Checked
Width = 1350
End
Begin Label Label2
BackStyle = 0 'Transparent
Height = 255
Index = 5
Left = 4590
TabIndex = 5
Top = 990
Width = 525
End
Begin Label Label1
Alignment = 1 'Right Justify
BackStyle = 0 'Transparent
Caption = "LineThickness"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 225
Index = 5
Left = 210
TabIndex = 6
Top = 990
Width = 1755
End
Begin Label Label2
BackStyle = 0 'Transparent
Height = 255
Index = 4
Left = 4590
TabIndex = 7
Top = 720
Width = 525
End
Begin Label Label1
Alignment = 1 'Right Justify
BackStyle = 0 'Transparent
Caption = "LineInnerRadius"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 225
Index = 4
Left = 210
TabIndex = 8
Top = 720
Width = 1755
End
End
Begin Frame Frame2
BackColor = &H00C0C0C0&
Caption = "Automatic Configuration Properties"
Height = 2685
Left = 3720
TabIndex = 9
Top = 0
Width = 5235
Begin CheckBox Check1
BackColor = &H00C0C0C0&
Caption = "AutoAngleConfine"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
ForeColor = &H000000C0&
Height = 285
Index = 5
Left = 240
TabIndex = 59
Top = 840
Value = 1 'Checked
Width = 1710
End
Begin Frame Frame1
BackColor = &H00C0C0C0&
Caption = "AutoOffsetStyle"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 1065
Left = 1980
TabIndex = 25
Top = 240
Width = 2535
Begin OptionButton Option1
BackColor = &H00C0C0C0&
Caption = "Circular"
ForeColor = &H00FF0000&
Height = 225
Index = 0
Left = 300
TabIndex = 28
Top = 270
Width = 1185
End
Begin OptionButton Option1
BackColor = &H00C0C0C0&
Caption = "Horizontal"
ForeColor = &H00FF0000&
Height = 225
Index = 1
Left = 300
TabIndex = 27
Top = 510
Value = -1 'True
Width = 1185
End
Begin OptionButton Option1
BackColor = &H00C0C0C0&
Caption = "Vertical"
ForeColor = &H00FF0000&
Height = 225
Index = 2
Left = 300
TabIndex = 26
Top = 750
Width = 1185
End
End
Begin HScrollBar HScroll1
Height = 240
Index = 3
Left = 2010
Max = 100
TabIndex = 22
Top = 2280
Width = 2550
End
Begin CheckBox Check1
BackColor = &H00C0C0C0&
Caption = "AutoAlign"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
ForeColor = &H000000C0&
Height = 285
Index = 0
Left = 240
TabIndex = 15
Top = 360
Value = 1 'Checked
Width = 1350
End
Begin CheckBox Check1
BackColor = &H00C0C0C0&
Caption = "AutoAngle"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
ForeColor = &H000000C0&
Height = 285
Index = 1
Left = 240
TabIndex = 14
Top = 600
Value = 1 'Checked
Width = 1350
End
Begin CheckBox Check1
BackColor = &H00C0C0C0&
Caption = "AutoOffset"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
ForeColor = &H000000C0&
Height = 285
Index = 2
Left = 240
TabIndex = 13
Top = 1080
Value = 1 'Checked
Width = 1350
End
Begin HScrollBar HScroll1
Height = 240
Index = 0
Left = 2010
Max = 360
TabIndex = 12
Top = 1470
Width = 2550
End
Begin HScrollBar HScroll1
Height = 240
Index = 1
Left = 2010
Max = 360
TabIndex = 11
Top = 1740
Width = 2550
End
Begin HScrollBar HScroll1
Height = 240
Index = 2
Left = 2010
Max = 100
TabIndex = 10
Top = 2010
Width = 2550
End
Begin Label Label2
BackStyle = 0 'Transparent
Height = 255
Index = 3
Left = 4590
TabIndex = 24
Top = 2280
Width = 525
End
Begin Label Label1
Alignment = 1 'Right Justify
BackStyle = 0 'Transparent
Caption = "AutoRadius"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 225
Index = 3
Left = 210
TabIndex = 23
Top = 2280
Width = 1755
End
Begin Label Label2
BackStyle = 0 'Transparent
Height = 255
Index = 2
Left = 4590
TabIndex = 21
Top = 2010
Width = 525
End
Begin Label Label1
Alignment = 1 'Right Justify
BackStyle = 0 'Transparent
Caption = "AutoStartAngle"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 225
Index = 0
Left = 600
TabIndex = 20
Top = 1470
Width = 1365
End
Begin Label Label1
Alignment = 1 'Right Justify
BackStyle = 0 'Transparent
Caption = "AutoStopAngle"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 225
Index = 1
Left = 600
TabIndex = 19
Top = 1740
Width = 1365
End
Begin Label Label1
Alignment = 1 'Right Justify
BackStyle = 0 'Transparent
Caption = "AutoOffsetDistance"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 225
Index = 2
Left = 210
TabIndex = 18
Top = 2010
Width = 1755
End
Begin Label Label2
BackStyle = 0 'Transparent
Height = 255
Index = 0
Left = 4590
TabIndex = 17
Top = 1470
Width = 525
End
Begin Label Label2
BackStyle = 0 'Transparent
Height = 255
Index = 1
Left = 4590
TabIndex = 16
Top = 1740
Width = 525
End
End
Begin SELECTOR Selector1
Angle = 210
AutoAlign = -1 'True
AutoAngle = -1 'True
AutoAngleConfine= -1 'True
AutoOffset = -1 'True
AutoOffsetDistance= 0.9
AutoOffsetStyle = 1 ' 1 - Horizontal
AutoRadius = 0.8
AutoStartAngle = 210
AutoStopAngle = 330
AVersion = 0
BackgroundColor = &H00C0C0C0&
BevelInner = 0 ' 0 - None
BevelOuter = 2 ' 2 - Inset
BevelWidth = 2
BorderType = 0 ' 0 - None
BorderWidth = 0
FontID = 0
FrameColor = &H00000000&
FrameScaleX = 0
FrameScaleY = 0
FrameStyle = 0 ' 0 - None
Height = 3885
Highlight = 0 'False
HighlightColor = &H0000FFFF&
KnobColor = &H00404040&
KnobOriginX = 0
KnobOriginY = 0
KnobRadius = 0.4
KnobStyle = 0 ' 0 - Cicular
KnobUserDefined = ""
Left = 90
LineDisplay = -1 'True
LineInnerRadius = 0.45
LineThickness = 2
MarkUserDefined = ""
MouseControl = -1 'True
OutlineAlign = 0 ' 0 - Left
OutlineColor = &H00000000&
OutlineTitle = ""
OutlineWidth = 0
Radius = 0
TabIndex = 0
Top = 150
Value = 0
Width = 3555
XScale = 0
YScale = 0
ZLoad = SELECTIO.FRX:0000
End
End
Sub Check1_Click (Index As Integer)
Select Case Index
Case 0
selector1.AutoAlign = -check1(Index)
If selector1.AutoAlign Then
label1(13).Enabled = False
option2(0).Enabled = False
option2(1).Enabled = False
option2(2).Enabled = False
Else
label1(13).Enabled = True
option2(0).Enabled = True
option2(1).Enabled = True
option2(2).Enabled = True
End If
Case 1
selector1.AutoAngle = -check1(Index)
If selector1.AutoAngle Then
label1(12).Enabled = False
hscroll1(8).Enabled = False
Else
label1(12).Enabled = True
hscroll1(8).Enabled = True
End If
Case 2
selector1.AutoOffset = -check1(Index)
If selector1.AutoOffset Then
label1(9).Enabled = False
label1(10).Enabled = False
label1(11).Enabled = False
hscroll1(9).Enabled = False
hscroll1(10).Enabled = False
hscroll1(11).Enabled = False
Else
label1(9).Enabled = True
label1(10).Enabled = True
label1(11).Enabled = True
hscroll1(9).Enabled = True
hscroll1(10).Enabled = True
hscroll1(11).Enabled = True
End If
Case 3
selector1.LineDisplay = -check1(Index)
Case 4
selector1.Highlight = -check1(Index)
Case 5
selector1.AutoAngleConfine = -check1(Index)
End Select
End Sub
Sub Form_Load ()
hscroll1(0) = selector1.AutoStartAngle
hscroll1(1) = selector1.AutoStopAngle
hscroll1(2) = selector1.AutoOffsetDistance * 100
hscroll1(3) = selector1.AutoRadius * 100
hscroll1(4) = selector1.LineInnerRadius * 100
hscroll1(5) = selector1.LineThickness
hscroll1(6) = selector1.Selections
hscroll1(7) = selector1.SelectionID
hscroll1(8) = selector1.SelectionAngle
hscroll1(9) = selector1.SelectionOffsetX * 100
hscroll1(10) = selector1.SelectionOffsetY * 100
hscroll1(11) = selector1.SelectionRadius * 100
option2(selector1.SelectionAlign) = True
label3.BackColor = selector1.SelectionColor
label4.BackColor = selector1.HighlightColor
text1 = selector1.SelectionCaption
End Sub
Sub HScroll1_Change (Index As Integer)
Select Case Index
Case 0
selector1.AutoStartAngle = hscroll1(Index)
label2(Index) = hscroll1(Index)
Case 1
selector1.AutoStopAngle = hscroll1(Index)
label2(Index) = hscroll1(Index)
Case 2
selector1.AutoOffsetDistance = hscroll1(Index) / 100
label2(Index) = hscroll1(Index) / 100
Case 3
selector1.AutoRadius = hscroll1(Index) / 100
label2(Index) = hscroll1(Index) / 100
Case 4
selector1.LineInnerRadius = hscroll1(Index) / 100
label2(Index) = hscroll1(Index) / 100
Case 5
selector1.LineThickness = hscroll1(Index)
label2(Index) = hscroll1(Index)
Case 6
selector1.Selections = hscroll1(Index)
If selector1.SelectionID >= selector1.Selections Then
selector1.SelectionID = selector1.Selections - 1
selector1.Value = selector1.SelectionID
Selector1_Change
End If
hscroll1(7).Max = selector1.Selections - 1
label2(Index) = hscroll1(Index)
Case 7
selector1.SelectionID = hscroll1(Index)
If selector1.SelectionID >= selector1.Selections Then
selector1.SelectionID = selector1.Selections - 1
End If
selector1.Value = selector1.SelectionID
hscroll1(Index) = selector1.SelectionID
Selector1_Change
label2(Index) = hscroll1(Index)
Case 8
selector1.SelectionAngle = hscroll1(Index)
label2(Index) = hscroll1(Index)
Case 9
selector1.SelectionOffsetX = hscroll1(Index) / 100
label2(Index) = hscroll1(Index) / 100
Case 10
selector1.SelectionOffsetY = hscroll1(Index) / 100
label2(Index) = hscroll1(Index) / 100
Case 11
selector1.SelectionRadius = hscroll1(Index) / 100
label2(Index) = hscroll1(Index) / 100
End Select
End Sub
Sub HScroll1_Scroll (Index As Integer)
Select Case Index
Case 0
selector1.AutoStartAngle = hscroll1(Index)
label2(Index) = hscroll1(Index)
Case 1
selector1.AutoStopAngle = hscroll1(Index)
label2(Index) = hscroll1(Index)
Case 2
selector1.AutoOffsetDistance = hscroll1(Index) / 100
label2(Index) = hscroll1(Index) / 100
Case 3
selector1.AutoRadius = hscroll1(Index) / 100
label2(Index) = hscroll1(Index) / 100
Case 4
selector1.LineInnerRadius = hscroll1(Index) / 100
label2(Index) = hscroll1(Index) / 100
Case 5
selector1.LineThickness = hscroll1(Index)
label2(Index) = hscroll1(Index)
Case 6
selector1.Selections = hscroll1(Index)
If selector1.SelectionID >= selector1.Selections Then
selector1.SelectionID = selector1.Selections - 1
selector1.Value = selector1.SelectionID
Selector1_Change
End If
hscroll1(7).Max = selector1.Selections - 1
label2(Index) = hscroll1(Index)
Case 7
selector1.SelectionID = hscroll1(Index)
If selector1.SelectionID >= selector1.Selections Then
selector1.SelectionID = selector1.Selections - 1
End If
selector1.Value = selector1.SelectionID
hscroll1(Index) = selector1.SelectionID
Selector1_Change
label2(Index) = hscroll1(Index)
Case 8
If check1(1) Then
MsgBox "Turning AutoAngle Off"
check1(1) = False
selector1.AutoAngle = False
End If
selector1.SelectionAngle = hscroll1(Index)
label2(Index) = hscroll1(Index)
Case 9
If check1(2) Then
MsgBox "Turning AutoOffset Off"
check1(2) = False
selector1.AutoOffset = False
End If
selector1.SelectionOffsetX = hscroll1(Index) / 100
label2(Index) = hscroll1(Index) / 100
Case 10
If check1(2) Then
MsgBox "Turning AutoOffset Off"
check1(2) = False
selector1.AutoOffset = False
End If
selector1.SelectionOffsetY = hscroll1(Index) / 100
label2(Index) = hscroll1(Index) / 100
Case 11
If check1(2) Then
MsgBox "Turning AutoOffset Off"
check1(2) = False
selector1.AutoOffset = False
End If
selector1.SelectionRadius = hscroll1(Index) / 100
label2(Index) = hscroll1(Index) / 100
End Select
End Sub
Sub Label3_Click ()
cmdialog1.Color = label3.BackColor
cmdialog1.Action = 3
label3.BackColor = cmdialog1.Color
selector1.SelectionColor = label3.BackColor
End Sub
Sub Label4_Click ()
cmdialog1.Color = label4.BackColor
cmdialog1.Action = 3
label4.BackColor = cmdialog1.Color
selector1.HighlightColor = label4.BackColor
End Sub
Sub Option1_Click (Index As Integer)
selector1.AutoOffsetStyle = Index
End Sub
Sub Option2_Click (Index As Integer)
selector1.SelectionAlign = Index
End Sub
Sub Option2_MouseDown (Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single)
If check1(0) Then
MsgBox "Turning AutoAlign Off"
check1(0) = False
selector1.AutoAlign = False
End If
End Sub
Sub Selector1_Change ()
hscroll1(6) = selector1.Selections
hscroll1(7) = selector1.SelectionID
If Not selector1.AutoAngle Then
hscroll1(8) = selector1.SelectionAngle
End If
If Not selector1.AutoOffset Then
hscroll1(9) = selector1.SelectionOffsetX * 100
hscroll1(10) = selector1.SelectionOffsetY * 100
hscroll1(11) = selector1.SelectionRadius * 100
End If
If Not selector1.AutoAlign Then
option2(selector1.SelectionAlign) = True
End If
label3.BackColor = selector1.SelectionColor
text1 = selector1.SelectionCaption
End Sub
Sub Text1_Change ()
selector1.SelectionCaption = text1
End Sub